package be.sc.classicnetwork.service.impl;

import org.springframework.transaction.annotation.Transactional;

import be.sc.classicnetwork.annotation.RefreshCache;
import be.sc.classicnetwork.dao.GenericDao;
import be.sc.classicnetwork.model.Contact;
import be.sc.classicnetwork.service.ContactService;

/**
 * ContactServiceImpl.
 */
@Transactional
public class ContactServiceImpl extends GenericServiceImpl<Contact> implements ContactService {

    /**
     * Constructor.
     */
    public ContactServiceImpl(GenericDao<Contact> dao) {
	super(dao);
    }

    /**
     * @see be.sc.classicnetwork.service.impl.GenericServiceImpl#saveOrUpdate(be.sc.classicnetwork.model.AbstractEntity)
     */
    @Override
    @RefreshCache(cacheRegion = RefreshCache.CONTACTS)
    public Contact saveOrUpdate(Contact entity) {
	return super.saveOrUpdate(entity);
    }

}
